/** 
* 最近更新：2018/12/11
* 作者：wangyr
* 功能：vue数字输入框开发 
*/
<template>
  <div>
    <h1 class="titleCenter">数字输入框</h1>
    <hr>
    <div>
      <numberInputChild v-model="value" :max="10" :min="0"></numberInputChild>
    </div>
  </div>
</template>

<script>
import numberInputChild from '@/views/demo/numberInput/numberInputChild'
import { add } from '../../../utils/export'  //export  function add(a,b){return a+b}
import sum2222 from '../../../utils/export' // export defalut function sum(b,c){return b-c}


export default {
  name: 'numberInput',
  components: {
    numberInputChild
  },
  data () {
    return {
      value: 5
    }
  },
  created () {
    console.log(add(2, 3))
    console.log(sum2222(4, 6))
  },
  methods: {

  }
}
</script>

<style>
</style>
